﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
        function callC() {
            var b = "1,测试名称,192.168.99.18,3001,;2,测试名称,192.168.99.17,3001,";
            var plu = "00622,00622,0,7.36,0,0,0,360,0,0,0,0,0,八宝粥" +
                "00621,00621,0,9,0,0,0,360,0,0,0,0,0,花生米";
            //var v = MERPOBJ.callBalance(b, plu);
            //alert(v);

            BizBrowser.printPreview("a/BaseTemplate.frx", '[{ "storeCode": "1001", "storeName": "大德源测试" }]', '[{ "detailCode": "1001", "detailName": "大德源测试" }]');
        }

        function callPrint() {
            var b = "";
            var plu = "";
            //var v = MERPOBJ.print("EPSON LQ-630K ESC/P 2 Ver 2.0", "test.frx");
            var v = BizBrowser.print("test.frx", '[{ "storeCode": "1001", "storeName": "大德源测试" }]', '[{ "detailCode": "1001", "detailName": "大德源测试" }]');
            //alert(v);
            //alert(v);
        }

        function aclasSend() {
            var ips = "192.168.1.87";
            var pluLines = "123213 21321 321321 32132 32132 321312\r\n123213 21321 321321 32132 32132 321312";
            BizBrowser.aclasSend(ips, pluLines);
        }

        function callApp() {
            BizBrowser.callApp("Desinger.exe", "paramsdsfds", "1");

        }

        function design() {
            BizBrowser.design();
        }

        function getPrintList() {
            alert(BizBrowser.getPrintList());
        }
    </script>

    <button onclick="callC()">打印预览</button>
    <br />
    <br />
    <button onclick="callPrint()">打印</button>
    <br />
    <br />
    <button onclick="design()">设计</button>
    <br />
    <br />
    <button onclick="getPrintList()">获取打印机列表</button>
    <br />
    <br />
    <button onclick="aclasSend()">顶尖传秤</button>
    <br />
    <br />
    <button onclick="callApp()">调用其他程序</button>
    <br />
    <br />

</body>
</html>